package ace.cmp.converter.api;

import java.util.List;
import java.util.Map;

/**
 * @author caspar
 * @date 2023/4/4 10:33
 */
public interface ConverterService {
  <S, T> AceConverter<S, T> getOrCreate(Class<S> sClass, Class<T> tClass);

  <S, T> AceConverter<List<S>, List<T>> getDefaultListConverter(Class<S> sClass, Class<T> tClass);

  <S, T, Id> AceConverter<Map<Id, S>, Map<Id, T>> getDefaultMapConverter(
      Class<S> sClass, Class<T> tClass);
}
